<?php

class Users3_model extends CI_Model {

    //put your code here
    public $table = "";
    function __construct() {
        parent::__construct();
        $this->table = MYSQL_TABLE_PREFLIX.TABLE_USER3_ACCOUNTS_INFORMATION;
    }
    
    function GetInformation($data){
        $query = $this->db->get_where($this->table, $data);
        return $query->result_array();
    }
    
    function Get($data){
        $query = $this->db->get_where($this->table, $data);
        return $query->result_array();
    }
    
    function Get_Advanced($select = '*', $where = array(), $order_by = "UserFullname desc", $limit = 10, $offset = 0){
        $query = $this->db->select($select)->order_by($order_by)->get_where($this->table, $where,$limit, $offset);
        return $query->result_array();
    }
    
    function Update($where = array(),$data = array()){
        $this->db->where($where);
        $this->db->update($this->table,$data);
    }
}
